package org.artifact.core.context.id;

import cn.hutool.core.lang.Snowflake;

public class SnowflakeFactory implements IDFactory {
	private Snowflake snowflake;
	
	public SnowflakeFactory(Snowflake snowflake) {
		super();
		this.snowflake = snowflake;
	}

	@Override
	public Object getId() {
		return snowflake.nextId();
	}


}
